package com.ruiysoft.entity.order;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2018-12-01
 */
@TableName("order_pay_transaction")
public class OrderPayTransaction extends Model<OrderPayTransaction> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    @TableField("order_no")
    private String orderNo;

    @TableField("user_id")
    private Long userId;

    @TableField("shop_id")
    private Long shopId;

    @TableField("open_id")
    private String openId;

    @TableField("pay_amount")
    private Long payAmount;

    @TableField("sys_transaction_no")
    private String sysTransactionNo;

    /**
     * 1 微信
            2 ？
     */
    @TableField("pay_type")
    private Integer payType;

    @TableField("create_time")
    private Date createTime;

    private String message;

    @TableField("js_sign")
    private String jsSign;

    public Long getId() {
        return id;
    }

    public OrderPayTransaction setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getOrderId() {
        return orderId;
    }

    public OrderPayTransaction setOrderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }
    public String getOrderNo() {
        return orderNo;
    }

    public OrderPayTransaction setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }
    public Long getUserId() {
        return userId;
    }

    public OrderPayTransaction setUserId(Long userId) {
        this.userId = userId;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public OrderPayTransaction setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }
    public String getOpenId() {
        return openId;
    }

    public OrderPayTransaction setOpenId(String openId) {
        this.openId = openId;
        return this;
    }
    public Long getPayAmount() {
        return payAmount;
    }

    public OrderPayTransaction setPayAmount(Long payAmount) {
        this.payAmount = payAmount;
        return this;
    }
    public String getSysTransactionNo() {
        return sysTransactionNo;
    }

    public OrderPayTransaction setSysTransactionNo(String sysTransactionNo) {
        this.sysTransactionNo = sysTransactionNo;
        return this;
    }
    public Integer getPayType() {
        return payType;
    }

    public OrderPayTransaction setPayType(Integer payType) {
        this.payType = payType;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public OrderPayTransaction setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public String getMessage() {
        return message;
    }

    public OrderPayTransaction setMessage(String message) {
        this.message = message;
        return this;
    }
    public String getJsSign() {
        return jsSign;
    }

    public OrderPayTransaction setJsSign(String jsSign) {
        this.jsSign = jsSign;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderPayTransaction{" +
        "id=" + id +
        ", orderId=" + orderId +
        ", orderNo=" + orderNo +
        ", userId=" + userId +
        ", shopId=" + shopId +
        ", openId=" + openId +
        ", payAmount=" + payAmount +
        ", sysTransactionNo=" + sysTransactionNo +
        ", payType=" + payType +
        ", createTime=" + createTime +
        ", message=" + message +
        ", jsSign=" + jsSign +
        "}";
    }
}
